package cn.edu.sig.dao;

import java.util.List;

import cn.edu.sig.bean.CurrentPage;
import cn.edu.sig.bean.Goods;
import cn.edu.sig.bean.Style;
import cn.edu.sig.bean.User;

public interface GoodsDao extends TemplateDao<Goods> {

	public CurrentPage<Goods> findAllByUser(Goods goods, int pageNo,
			int pageSize);

	public CurrentPage<Goods> findAllByUser(int pageNo, int pageSize);

	public List<Goods> findAllByGoods(Goods goods);
	
	public Goods resetGoods(Goods goods);
	
	public List<Goods> findGoodsByStatus(User user,int status);
	
	public CurrentPage<Goods> findGoodsByStyle(Style style,int pageNo,
			int pageSize);
	public CurrentPage<Goods> searchGoods(Style style, String sqlCountRows,String sqlFetchRows,int pageNo,
			int pageSize);
	
	public void updateGoods(Goods goods);
	
}
